package com.vo;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@Data
public class OrderVo {

    private Long id;

    private String name;

    @DateTimeFormat(pattern = "yyyy|MM|dd-->HH:mm:ss")
    private LocalDateTime dateTime;

    public OrderVo() {
    }

    public OrderVo(Long id, String name) {
        this.id = id;
        this.name = name;
    }
}
